#include <stdio.h>


int main()
{
	int a,b;
	scanf("%d %d",&a,&b);
	int C,S;
	C=(a+b)*2;
	S=a*b;
	printf("C:%d\nS:%d\n",C,S);
	return 0;
}